package com.qf.controller;

import com.qf.pojo.BaseResult;
import com.qf.service.HospitalInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/hospital")
public class HospitalInfoController {

    @Autowired
    HospitalInfoService hospitalInfoService;
    @GetMapping("/findImg")
    public BaseResult findImg(){
        BaseResult img = hospitalInfoService.findImg();
        return img;
    }
}
